<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Update Item</title>
</head>
<body>
<form:form action="UpdateItem.htm" method="post" commandName="item">
<table width="100%">
<tr>
    
<td>ItemNumber</td><td>${item.partNumber},${item.partType}<input type="hidden" name="partNumber" value="${item.partNumber}" /></td><td>Hold</td><td></td></tr>
<tr><td>ItemRevision</td><td>${item.revision}</td><td>DWG</td><td></td></tr>

<tr><td>LongDescription</td><td><form:textarea path="description"/></td></tr>
</table>
<table>
<tr><td></td><td>Engineering New Item</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td></td><td>Tracking</td>
</table>
<hr>
<table width="100%">
<tr><td>ShippingWeight</td><td><form:input path="shippingWeight"/></td>
	<td>Make/Buy/X</td><td><form:select path="makeBuy" items="${makeList}"/></td>
	<td>Model</td><td><form:input path="modelNumber"/></td>
	<td>CommodityCode</td><td><form:input path="commodityCode"/></td></tr>
<tr><td>ShippingWeightUOM</td><td><form:select path="shippingWeightUnit" items="${ShippingWtUnitList}"/></td>
	<td>BuyerCode</td><td><form:select path="buyerCode" items="${buyerCodeList}"/></td>
	<td>ProductCode</td><td><form:input path="productCode"/></td>
	<td>VolumeUnit</td><td><form:select path="volumeUnit" items="${volumeUnit}"/></td></tr>
<tr><td>Dimentions:Length</td><td><form:input path="shippingLength"/></td>
	<td>Width</td><td><form:input path="shippingWidth"/></td>
	<td>Height</td><td><form:input path="shippingDepth"/></td>
	<td>Quality Inspection Type</td><td><form:select path="inspectionType" items="${inspectionTypeList}"/></td></tr>	
<tr><td>Part UOM *</td><td><form:select path="partUnit" items="${itemUnitList}"/></td>
	<td>PO Unit</td><td><form:input path="partPoUnit"/></td></tr>		
</table>
<hr>
<hr>
<table width="100%">
<tr><td>OnHand:</td><td>${item.onhand}</td><td>Quarter Usage:</td><td>${item.quarterUsage}</td></tr>
<tr><td>InWIP:</td><td>${item.workInProcessQty}</td><td>Year Usage:</td><td>${item.yearUsage}</td></tr>
<tr><td>OnLoan:</td><td>${item.onloanQty}</td><td>List Price:</td><td><form:input path="listPrice"/></td></tr>
<tr><td>InQA:</td><td>${item.inQualityCheckingQty}</td><td>Std Cost:</td><td><form:input path="standardCost"/></td></tr>
<tr><td>OnDemand:</td><td>${item.onDemandQty}</td><td>Avg Cost:</td><td>${item.averageCost}</td></tr>
<tr><td>OnOrder:</td><td>${item.onOrderQty}</td><td>PO Cost:</td><td>${item.purchaseCost}</td></tr>
<tr><td>Min Qty:</td><td><form:input path="minQty"/></td><td>Last PO Cost:</td><td></td></tr>
<tr><td>Max Qty:</td><td><form:input path="maxQty"/></td><td>Last PO#:</td><td></</td></tr>
<tr><td>LeadTime:</td><td><form:input path="leadTime"/>Days</td><td>Part Class:</td><td><form:select path="partClass"/></td></tr>
</table>
<table width="100%">
<tr><td width="13%">Language Description</td></tr>
<tr bgcolor="lightgrey"><td>Language</td><td width="7%">Default</td><td width="69%">Description</td><td width="11%">Status</td></tr>
<tr><td>English</td><td>&#10004 </td><td><input name="desc" type="text"/></td><td>OK</td>
</table>
<div align="right">
<table>
<tr><td><input type="button" name="edit" value="edit"/></td>
	<td><input type="button" name="save" value="save"/></td>
	<td><input type="button" name="delete" value="delete"/></td>
	<td><input type="button" name="deleteAll" value="delete all"/></td>
</table></div>


* Indicates Madetory Field 
  <!--  <input type="hidden" name="action" value="save"/>
   <input type="button" name="save2" value="save"/> -->
   <input name="submit" type="submit" value="Save" />
  <input type="button" name="cancel" value="cancel"/>

</form:form>
</body>
</html>
